package com.aqa.concurrent;

public class IfCase {

    public static void case1() {
        int a = 2;
        int b = 3;
        boolean c = a != (a = b);
        System.out.println("① c = " + c + "; a = " + a);
    }

    public static void case2() {
        int a = 2;
        int b = 3;
        boolean c = (a = b) != a;
        System.out.println("② c = " + c + " ; a = " + a);
    }

    public static void main(String[] args) {
        case1();
        case2();
    }

}
